package com.ruoyi.blog.mapper;

import com.ruoyi.blog.domain.BlogCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by lf on 2020/12/19.
 */
public interface BlogCategoryMapper {
    List<BlogCategory> getAllCategories();

    int deleteCategoryByIds(@Param("ids") String[] ids);

    int updateCategoryById(BlogCategory category);

    int addCategory(BlogCategory category);
}
